package com.zzzzzz.content.content;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.zzzzzz.content.userfeel.NoSuchUserFeelException;
import com.zzzzzz.content.userfeel.UserFeelAlreadyExistsException;

public interface ContentService {
	public List<ContentListView> find(String orderByField, int start, int offset);
	public long findCount();
	
	public List<ContentListView> findByTagId(Integer tagId, String orderByField, int start, int offset);
	public long findByTagIdCount(Integer tagId);
	
	@Transactional
	public Integer like(Long id, Integer idType, Long userId) throws UserFeelAlreadyExistsException;
	@Transactional
	public Integer unFeel(Long id, Integer idType, Long userId) throws NoSuchUserFeelException;
}
